﻿#include "NetServer.h"

#include <algorithm>
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>

#include "CUitl.h"
#include "json/json.h"

#include "WebStream.h"

int WebStreamInit(int port, const char* url, WebStreamCB cb)
{
  NetServer::GetMng()->Init(port, url, cb);
  return 0;
}
int WebStream_sendStream(const void* buff, int len, uint64_t pts)
{
  NetServer::GetMng()->SendVideoFrame(buff, len, 0);
  return 0;
}
int WebStreamUnInit()
{
  NetServer::GetMng()->unInit();
  return 0;
}